package com.fz.mapper;

import com.fz.entity.Book;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * Created by webrx on 2017/7/6.
 */
@Component  @Transactional
public interface BookMapper {
    public List<Book> queryAll();
    public List<Book> page(Map<String,Integer> map);
    public int deleteById(int id);
    public int insert(Book book);
    public Book queryById(int id);
    public int updateById(Book book);

}
